#ifndef _DEBUGUART_H
#define _DEBUGUART_H
#include "data_type_define.h"

#ifdef _DEBUG
	void  debug_init(unsigned long baudrate);
	void debugprintf(const char *fmt, ...);
	unsigned char  debug_readrx(unsigned char* receiveBuf,unsigned int *readlen);
	void debughexout(const char* pszHex,unsigned int HexLen);
	void _debugtimeprocess(void);
	void  debugsend(const unsigned char* sendBuf,unsigned short int len);
	#define debugtimeprocess _debugtimeprocess()

	void debugcharhex(unsigned char digtemp);
	void debugsignleint(int digtemp);
	void debugunsignedint(unsigned int digtemp);
	void debug_timestringout(const uint8* pszHex);
	void debugstringout(const uint8* pszHex);
      void debug_timeHexout(const uint8* pszHex,uint16 HexLen);
	void debug_timeAsciiout(const uint8* pszHex,uint16 HexLen);
#else
	#define debug_init(x)
	#define debugprintf(fmt, x...)
	#define debug_readrx(x,y)
	#define debughexout(x,y)
	#define debugtimeprocess
	#define debugsend(x,y)
	#define debugcharhex(x)
	#define debugsignleint(x)
	#define debugunsignedint(x)
	#define debug_timestringout(x)
	#define debugstringout(x)
	#define debug_timeAsciiout(x,y)
	#define debug_timeHexout(x,y)
	
#endif
#endif
